-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimal webfinger #5373
minimal webfinger #5373
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
💥 Acceptance test localApiTests-apiSpacesShares-ocis failed. Further test are cancelled... |
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Dominik Schmidt <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Martin <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Co-authored-by: Martin <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
Q: dont we need entries in: I stumbled across this as we needed to add that for the postprocessing service so that stuff will get included in the automated doc processing... |
Author: Jörn Friedrich Dreyer <[email protected]> Date: Mon Feb 13 11:05:20 2023 +0100 minimal webfinger (#5373) * initial webfinger stub Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * add webfinger to proxy, return current host Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * some cleanup Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * allow passing multiple rel params Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * introduce interfaces Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * parse oidc auth token Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * add templating, drop chain, use map of relation providers Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * fix ocis url yaml Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * fix typos Co-authored-by: Dominik Schmidt <[email protected]> * switch to userinfo claims Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * readme cleanup Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * add TODO.md with ideas Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * replace subject on authenticated request responses Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * Apply suggestions from code review Co-authored-by: Martin <[email protected]> * markdown lint Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * return a 401 when bearer token expired, some more docs Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * Apply suggestions from code review Co-authored-by: Martin <[email protected]> * fix docs Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * clarify env var Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * extract handler func Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * use correct service in reflex.conf Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * test relations Signed-off-by: Jörn Friedrich Dreyer <[email protected]> * Update services/webfinger/pkg/config/config.go --------- Signed-off-by: Jörn Friedrich Dreyer <[email protected]> Co-authored-by: Dominik Schmidt <[email protected]> Co-authored-by: Martin <[email protected]>
This is a minimal implementation of webfinger RFC7033.
It returns the openid connect issuer relation and one or more owncloud instance relation when the request was authenticated. For more details and configuration examples see the README.md
Most of this is boilerplate for a new service. For a review start at:
pkg/services/v0/services.go
pkg/relations/openid-discovery.go
pkg/relations/owncloud-instance.go